/* 订单状态 */
const ORDER_STATUS_LIST = [{
  key: 0,
  name: '待支付',
  icon: 'dengdai',
  styleType: 'wait',
}, {
  key: 1,
  name: '超时关闭',
  icon: 'fail',
  styleType: 'gray-l',
}, {
  key: 2,
  name: '用户关闭',
  icon: 'fail',
  styleType: 'gray-l',
}, {
  key: 3,
  name: '系统关闭',
  icon: 'fail',
  styleType: 'gray-l',
}, {
  key: 4,
  name: '出票中', // 已支付
  icon: 'chenggong',
  styleType: 'wait',
}, {
  key: 5,
  name: '待确认',
  icon: 'dengdai',
  styleType: 'wait',
}, {
  key: 6,
  name: '待使用',
  icon: 'dengdai',
  styleType: 'wait',
}, {
  key: 7,
  name: '交易完成',
  icon: 'chenggong',
  styleType: 'safe',
}, {
  key: 8,
  name: '已退款', // 组合状态
  icon: 'chenggong',
  styleType: 'gray-l',
}]

/* 订单状态查询（pc版） */
// NOTE: 订单状态展示和查询key值不同
const ORDER_STATUS_QUERY_LIST = [{
    key: -999,
    name: '订单状态',
  },
  {
    key: 0,
    name: '有效订单',
  },
  {
    key: 1,
    name: '待付款',
  },
  {
    key: 2,
    name: '已取消',
  },
  {
    key: 3,
    name: '出票中',
  },
  {
    key: 4,
    name: '待确认',
  },
  {
    key: 5,
    name: '待使用',
  },
  {
    key: 6,
    name: '交易完成',
  },
  {
    key: 7,
    name: '已退款',
  },
]

/* 核销码状态 */
const VOUCHER_STATE_LIST = [{
  key: 0,
  name: '未使用',
  styleType: 'wait',
}, {
  key: 1,
  name: '待生效',
  styleType: 'wait',
}, {
  key: 10,
  name: '已使用',
  styleType: 'safe',
}, {
  key: 11,
  name: '已失效',
  styleType: 'gray-l',
}, ]

/* 用户退款原因 */
const REFUND_USER_REASON_LIST = [{
  name: '行程不确定',
  key: null,
}, {
  name: '价格原因',
  key: null,
}, {
  name: '需要更改出行日期',
  key: null,
}, {
  name: '评价不好',
  key: null,
}]

/* 退款状态 */
const REFUND_STATE_LIST = [{
  key: 0,
  name: '审核中',
  icon: 'dengdai',
  styleType: 'wait',
}, {
  key: 1,
  name: '审核通过',
  icon: 'chenggong',
  styleType: 'safe',
}, {
  key: 2,
  name: '拒绝',
  icon: 'fail',
  styleType: 'warn',
}, {
  key: 3,
  name: '退款中',
  icon: 'dengdai',
  styleType: 'wait',
}, {
  key: 4,
  name: '已退款',
  icon: 'chenggong',
  styleType: 'safe',
}, {
  key: 5,
  name: '已取消',
  icon: 'fail',
  styleType: 'gray-l',
}, {
  key: 6,
  name: '待退货',
  icon: 'dengdai',
  styleType: 'wait',
}, {
  key: 7,
  name: '待收货',
  icon: 'dengdai',
  styleType: 'wait',
}]

/* 限制退款次数 */
const REFUND_LIMIT_LIST = [{
  key: 0,
  name: '不限制',
}, {
  key: 1,
  name: '仅支持退款1次',
}, {
  key: 2,
  name: '仅支持全部退款',
}, ]

export {
  ORDER_STATUS_LIST, // 订单状态
  ORDER_STATUS_QUERY_LIST, // 订单状态查询（pc版）
  VOUCHER_STATE_LIST, // 核销码状态
  REFUND_USER_REASON_LIST, // 用户退款原因
  REFUND_STATE_LIST, // 退款状态
  REFUND_LIMIT_LIST, // 限制退款次数
}